#!/usr/bin/env bash

source localrc


for i in `seq $NUMBER`;do
  echo "ok: delete server ceph$i"
  openstack server delete ceph$i
  sleep 3
  echo "ok: delete server ceph$i root volume"
  openstack volume delete ceph$i-root-disk
done


for i in `seq $NUMBER`;do
  for n in `seq $VOLUME_PER_VM`;do
    echo "ok: delete volume ceph$i-$n"
    openstack volume delete ceph$i-$n
  done
done
